@page
@using BasicTestApp.RouterTest
<!DOCTYPE html>
<html>
<head>
    <title>Prerendering tests</title>
    <base href="~/" />
</head>
<body>
    <app>@(await Html.RenderComponentAsync<TestRouter>())</app>

    @*
        So that E2E tests can make assertions about both the prerendered and
        interactive states, we only load the .js file when told to.
    *@
    <hr />

    <button id="load-boot-script" onclick="start()">Load boot script</button>

    <script src="_framework/blazor.server.js" autostart="false"></script>
    <script>
    // Used by InteropOnInitializationComponent
    function setElementValue(element, newValue) {
      element.value = newValue;
      return element.value;
            }

    function start() {
        Blazor.start({
            logLevel: 1 // LogLevel.Debug
        });
    }
    </script>
</body>
</html>
